Get Payment Method Settings
GET /api/v1/InvoiceSetting/GetPayment
Description
This endpoint is used to get the payment method settings. It retrieves the payment method settings for invoices.
Headers:
- Content-Type: application/json
ApiKey:
- No API key required
Path Parameters:
- version: string, required
URL:
- GET:
{{baseUrl API url}}/api/v1/InvoiceSetting/GetPayment
Response:
- 200: Success, returns the payment method settings for invoices.
Error Codes:
-
404: Resource not found, the specified version or setting does not exist.
-
500: Internal server error, something went wrong while processing the request.
Example Request URL:
GET /api/v1/InvoiceSetting/GetPayment
Content-Type: application/json
Example Response:
HTTP/1.1 200 OK
{
"paymentMethodSettings": [
{
"paymentMethod": "Credit Card",
"gateway": "Stripe",
"accountNumber": "1234567890",
"isActive": true
},
{
"paymentMethod": "Bank Transfer",
"gateway": "Wire",
"accountNumber": "9876543210",
"isActive": false
}
]
}
Method: GET
/api/v1/InvoiceSetting/GetPayment
Response: 200
LANGUAGE
CURL REQUEST
curl --request GET \
--url /api/v1/InvoiceSetting/GetPayment \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!